<?php
echo $this->Html->charset();
?>
<html>
    <head>
        <title>
            <?php
                echo $title_for_layout; /* Tiêu d? c?a trang web */   
            ?>
        </title>
        <?php 
              echo $html->css("../js/jquery-ui/css/redmond/jquery-ui-1.8.13.custom.css");
              echo $html->css("../js/jscalendar/calendar-blue.css");
              echo $html->css("style 2.css");
              echo $html->css("frontend.css");
              echo $html->css("style_customer.css");
              
              echo $javascript->link("jquery-1.5.2.min.js");
              echo $javascript->link("jquery-ui/js/jquery-ui-1.8.13.custom.min.js");
              echo $javascript->link("jscalendar/calendar.js");
			  echo $javascript->link("menu.js");
              echo $javascript->link("jscalendar/lang/calendar-vi.js");
              echo $javascript->link("jscalendar/calendar-setup.js");
        ?>
   </head>

<script type="text/javascript">
	$(document).ready(function(){
		$('#box_main').append('<div id="top">Back to top</div>');
		$(window).scroll(function() {
			if($(window).scrollTop() !=0){
				$('#top').fadeIn();
			} else{
				$('#top').fadeOut();	
			}
		});	
		$('#top').click(function(){
			$('html,body').animate({scrollTop:0},500);
		});
        //$('#menu_customer ul li ul').css({visibility:"visible",display:"none"});
		$(".acc ul").hide();
		$(".acc a").click(function(){
			$(this).next().slideToggle();
			return false;
		});
	});
</script>
<body>
<div class="chung">
	<div class="menu">
    	<ul>
        	<li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/clothes24.png"/><span class="trong">Thời trang</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/stock_status.png"/><span class="trong">Gia dụng</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/electronic.png"/><span class="trong">Điện máy</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/car24 .png"/><span class="trong">Ôtô</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/building.png"/><span class="trong">Nhà đất</span></a></li>
        </ul>
    </div>
    <div class="login">
        <?php if (isset($_SESSION['customer'])) {
            echo('Xin chào: <a href="#">'.$_SESSION['customer'].' </a> || <a href="/onlinemarket/customer_logons/logout">Thoát</a>');
        } else { ?>
        <script type="text/javascript">
            window.location = "/onlinemarket/customer_logons";
        </script>
        <?php } ?>
    </div>
</div><!--end div.chung-->
<div class="box_search">
	<div class="logo"></div><!--end div.logo-->
    <div class="search">
    	<div class="search_left" style="background:url(/onlinemarket/img/l.png) no-repeat ;"></div><!--end div.search_left-->
        <div class="search_content" style="background:url(/onlinemarket/img/a.PNG) repeat-x;">
        	<input type="text" name="txt_search_content" class="txt_search" /><input type="button" class="btn_search" value=" "/></div><!--end div.search_content-->
	</div><!--end div.search-->
    <div class="support">
    	<a href="#"><img title="Hướng dẫn đăng bán" src="/onlinemarket/img/hdmb.png"/></a>
        <a href="#"><img title="Hướng dẫn mua hàng" src="/onlinemarket/img/hdmh.png" /></a>
    </div><!--end div.support-->
    <div class="datetime">
			 Tỷ giá: USD = 20.620 VNĐ, EUR = 29.457 VNĐ
    </div><!--end div.datetime-->
    <div class="yahoo_support">
			 <a class="a_general" href="#" title="Hỗ trợ trực tuyến qua Yahoo!Messenger">
             	<img src="/onlinemarket/img/yahoo.png" height="20" width="20" title="Hỗ trợ trực tuyến qua Yahoo!Messenger" style="border:none;">
                 &nbsp; Hỗ trợ trực tuyến </a>
                 
    </div><!--end div.yahoo_support-->
</div><!--end div.box_search-->

<div id="wraper">
<div class="hr"><hr/></div><!--end div.hr-->
<br/>
	<div id="panel_customer">
    	<div id="avata">
        	<a href="#"><img src="/onlinemarket/img/customer_avata.png" /></a>
            <h3><?php echo($_SESSION['customer']); ?></h3>
            <p>
            	<a href="#">Thay ảnh đại diện</a>
            </p>
        </div><!--end div#avata-->
        <div id="menu_customer">
        	<ul>
            	<li class="li_no_active">CÁ NHÂN</li>
            	<li class="li_active"><img src="/onlinemarket/img/cus_menu_action.png"/><a href="#">Hoạt động</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_diary.png"/><a href="#">Nhật ký</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_mess.png"/><a href="#" >Tin nhắn</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_friend.png"/><a href="#">Bạn bè</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_acount.png"/><a href="#">Tài khoản</a></li>
                <li class="li_no_active">MUA HÀNG</li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_buy.png"/><a  href="#">Mua hàng</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Hóa đơn mua hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a  href="#">Đang quan tâm</a> </li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a  href="#">Đang mua</a></li>
                     </ul>
                </li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_ebay.png"/><a href="#" >Nhập hàng nươc ngoài</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a class="acc" href="#">Đang nhập hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a class="acc" href="#">Đang quan tâm</a></li>
                     </ul>
                </li>
                <li class="li_no_active">BÁN HÀNG</li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_shop.png"/><a href="#">Shop</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Thông tin chung</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Quản lý Shop</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Cài đặt</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Gia hạn-Nâng cấp</a></li>
                     </ul>
                </li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_pin.png"/><a href="#">Bán hàng nội địa</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Đang bán hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Duyệt mặc cả</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Quản trị tin bán</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Hóa đơn bán hàng</a></li>
                     </ul>
                </li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_quangcao.png"/><a href="#">Quảng cáo sản phẩm</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_card.png"/><a href="#">Thanh toán trực tuyến</a></li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_raovat.png"/><a href="#">Rao vặt</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Đăng rao vặt</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Tin đã đăng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Tin VIP</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"/><a href="#">Phiếu mua tin VIP</a></li>
                     </ul>
                </li>
            </ul>
        </div><!--end div#menu_customer-->
    
    </div><!--end div#content_customer-->
</div><!--end div#wraper-->

        <br />        
        <div>
        </div>
        <?php echo $content_for_layout;/* N?i dung c?a views x? lý s? xu?t ra ? dây*/?>
        <?php 
           //  echo $this->element('default'.DS.'header.ctp');
             /* Chèn các elements b?n c?n vào ch? b?n mu?n */
        ?>
    </body>
</html>